import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

// 视频表
@Entity()
export class Banner {
  @PrimaryGeneratedColumn()
  id: number;

  // 轮播图标题
  @Column({ type: 'varchar', name: 'bannerTitle', default: '' })
  bannerTitle: string;

  // 轮播图描述
  @Column({ type: 'varchar', name: 'bannerDescribe', default: '' })
  bannerDescribe: string;

  // 轮播图-图
  @Column({ type: 'varchar', name: 'bannerImage', default: '' })
  bannerImage: string;

  // 关联的视频
  @Column({ type: 'int', name: 'videoId', default: '0' })
  videoId: number;

  @Column()
  create_time: Date;

  @Column()
  updated_time: Date;
}
